package com.drivemanage.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.drivemanage.entry.DriveResult;
import com.drivemanage.service.ExpInfoService;
import com.drivemanage.service.adminManService;

@Controller
@RequestMapping("/admin")
public class adminManController {
	
	@Resource
	private adminManService adminservice;
	
	@ResponseBody
    @RequestMapping("/getOrders.do")
    public DriveResult getOrders(String orderType,String orderby) {
        return adminservice.getOrders(orderType,orderby);
    }
	
	@ResponseBody
	@RequestMapping("/getManageInfo.do")
	public DriveResult getManageInfo(String orderType,String orderby){
		return adminservice.getManageInfo(orderType,orderby);
	}
	
	@ResponseBody
	@RequestMapping("/changeOrderStatus.do")
	public DriveResult changeOrderStatus(String tag,String order_id){
		return adminservice.changeOrderStatus(tag,order_id);
	}
	@ResponseBody
	@RequestMapping("/deluser.do")
	public DriveResult deluser(String user_id){
		return adminservice.deluser(user_id);
	}
	@ResponseBody
	@RequestMapping("/delcars.do")
	public DriveResult delcars(String car_id){
		return adminservice.delcars(car_id);
	}
	@ResponseBody
	@RequestMapping("/delorder.do")
	public DriveResult delorder(String order_id){
		return adminservice.delorder(order_id);
	}
	@ResponseBody
	@RequestMapping("/deltour.do")
	public DriveResult deltour(String art_id){
		return adminservice.deltour(art_id);
	}
}
